using Newtonsoft.Json;

namespace WxLib.Model
{
    public class SendMsgBody
    {
        public int Uin { get; set; }
        public string Sid { get; set; }
        public string Skey { get; set; }
        public string DeviceID { get; set; }
        public Msg Msg { get; set; }
        public int Scene { get; set; }

        public string ToJson()
        {
            return "\"BaseRequest\":" + JsonConvert.SerializeObject(new SendMsgBody
            {
                Uin = Uin,
                Sid = Sid,
                Skey = Skey,
                DeviceID = DeviceID,
                Msg = Msg,
                Scene = Scene
            });
        }
    }
}